import request from '@/utils/request';
import { parseStrEmpty } from '@/utils/ruoyi';

// 分页查询社保统计
export function socialSecurityPage(data) {
    return request({
        url: '/social/page',
        method: 'post',
        data: data,
    });
}
// 分页查询社保统计--明细
export function socialSecurityPageM(data) {
    return request({
        url: '/social/detail/page',
        method: 'post',
        data: data,
    });
}

// 导入社保数据
export function Simport(data) {
    return request({
        url: '/social/import',
        method: 'post',
        headers: { 'Content-Type': 'multipart/form-data' },
        data: data,
    });
}
//导出
export function deriveSb(data) {
    return request({
        url: '/social/export',
        method: 'post',
        responseType: 'blob',
        data: data,
    });
}

//查询字典业务 岗位
export function getZidian(query) {
    return request({
        url: `/system/dict/data/type/${query}`,
        method: 'get',
    });
}
//查询班组
export function getBanzu(query) {
    return request({
        url: '/team/list',
        method: 'get',
        params: query,
    });
}

// 提交审核
export function submitShenhe(data) {
    return request({
        url: '/social/submit',
        method: 'post',
        data: data,
    });
}
// 撤回审核
export function revocationShenhe(data) {
    return request({
        url: '/social/cancel',
        method: 'post',
        data: data,
    });
}

// 编辑社保明细
export function EditSocialSecurityDetails(data) {
    return request({
        url: '/social/detail/edit',
        method: 'post',
        data: data,
    });
}
//
// 删除明细
export function delSbMx(query) {
    return request({
        url: '/social/detail/delete',
        method: 'delete',
        params: query,
    });
}
